package com.ygqh.baby.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class YgTuanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YgTuanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTuanNameIsNull() {
            addCriterion("tuan_name is null");
            return (Criteria) this;
        }

        public Criteria andTuanNameIsNotNull() {
            addCriterion("tuan_name is not null");
            return (Criteria) this;
        }

        public Criteria andTuanNameEqualTo(String value) {
            addCriterion("tuan_name =", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameNotEqualTo(String value) {
            addCriterion("tuan_name <>", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameGreaterThan(String value) {
            addCriterion("tuan_name >", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameGreaterThanOrEqualTo(String value) {
            addCriterion("tuan_name >=", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameLessThan(String value) {
            addCriterion("tuan_name <", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameLessThanOrEqualTo(String value) {
            addCriterion("tuan_name <=", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameLike(String value) {
            addCriterion("tuan_name like", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameNotLike(String value) {
            addCriterion("tuan_name not like", value, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameIn(List<String> values) {
            addCriterion("tuan_name in", values, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameNotIn(List<String> values) {
            addCriterion("tuan_name not in", values, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameBetween(String value1, String value2) {
            addCriterion("tuan_name between", value1, value2, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanNameNotBetween(String value1, String value2) {
            addCriterion("tuan_name not between", value1, value2, "tuanName");
            return (Criteria) this;
        }

        public Criteria andTuanDescIsNull() {
            addCriterion("tuan_desc is null");
            return (Criteria) this;
        }

        public Criteria andTuanDescIsNotNull() {
            addCriterion("tuan_desc is not null");
            return (Criteria) this;
        }

        public Criteria andTuanDescEqualTo(String value) {
            addCriterion("tuan_desc =", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescNotEqualTo(String value) {
            addCriterion("tuan_desc <>", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescGreaterThan(String value) {
            addCriterion("tuan_desc >", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescGreaterThanOrEqualTo(String value) {
            addCriterion("tuan_desc >=", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescLessThan(String value) {
            addCriterion("tuan_desc <", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescLessThanOrEqualTo(String value) {
            addCriterion("tuan_desc <=", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescLike(String value) {
            addCriterion("tuan_desc like", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescNotLike(String value) {
            addCriterion("tuan_desc not like", value, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescIn(List<String> values) {
            addCriterion("tuan_desc in", values, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescNotIn(List<String> values) {
            addCriterion("tuan_desc not in", values, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescBetween(String value1, String value2) {
            addCriterion("tuan_desc between", value1, value2, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andTuanDescNotBetween(String value1, String value2) {
            addCriterion("tuan_desc not between", value1, value2, "tuanDesc");
            return (Criteria) this;
        }

        public Criteria andStartDateIsNull() {
            addCriterion("start_date is null");
            return (Criteria) this;
        }

        public Criteria andStartDateIsNotNull() {
            addCriterion("start_date is not null");
            return (Criteria) this;
        }

        public Criteria andStartDateEqualTo(Date value) {
            addCriterion("start_date =", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotEqualTo(Date value) {
            addCriterion("start_date <>", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateGreaterThan(Date value) {
            addCriterion("start_date >", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateGreaterThanOrEqualTo(Date value) {
            addCriterion("start_date >=", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLessThan(Date value) {
            addCriterion("start_date <", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLessThanOrEqualTo(Date value) {
            addCriterion("start_date <=", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateIn(List<Date> values) {
            addCriterion("start_date in", values, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotIn(List<Date> values) {
            addCriterion("start_date not in", values, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateBetween(Date value1, Date value2) {
            addCriterion("start_date between", value1, value2, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotBetween(Date value1, Date value2) {
            addCriterion("start_date not between", value1, value2, "startDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("end_date is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("end_date is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(Date value) {
            addCriterion("end_date =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(Date value) {
            addCriterion("end_date <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(Date value) {
            addCriterion("end_date >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(Date value) {
            addCriterion("end_date >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(Date value) {
            addCriterion("end_date <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(Date value) {
            addCriterion("end_date <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<Date> values) {
            addCriterion("end_date in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<Date> values) {
            addCriterion("end_date not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(Date value1, Date value2) {
            addCriterion("end_date between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(Date value1, Date value2) {
            addCriterion("end_date not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Long value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Long value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Long value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Long value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Long value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Long> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Long> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Long value1, Long value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Long value1, Long value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andGroupModeIsNull() {
            addCriterion("group_mode is null");
            return (Criteria) this;
        }

        public Criteria andGroupModeIsNotNull() {
            addCriterion("group_mode is not null");
            return (Criteria) this;
        }

        public Criteria andGroupModeEqualTo(String value) {
            addCriterion("group_mode =", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeNotEqualTo(String value) {
            addCriterion("group_mode <>", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeGreaterThan(String value) {
            addCriterion("group_mode >", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeGreaterThanOrEqualTo(String value) {
            addCriterion("group_mode >=", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeLessThan(String value) {
            addCriterion("group_mode <", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeLessThanOrEqualTo(String value) {
            addCriterion("group_mode <=", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeLike(String value) {
            addCriterion("group_mode like", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeNotLike(String value) {
            addCriterion("group_mode not like", value, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeIn(List<String> values) {
            addCriterion("group_mode in", values, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeNotIn(List<String> values) {
            addCriterion("group_mode not in", values, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeBetween(String value1, String value2) {
            addCriterion("group_mode between", value1, value2, "groupMode");
            return (Criteria) this;
        }

        public Criteria andGroupModeNotBetween(String value1, String value2) {
            addCriterion("group_mode not between", value1, value2, "groupMode");
            return (Criteria) this;
        }

        public Criteria andTuanPriceIsNull() {
            addCriterion("tuan_price is null");
            return (Criteria) this;
        }

        public Criteria andTuanPriceIsNotNull() {
            addCriterion("tuan_price is not null");
            return (Criteria) this;
        }

        public Criteria andTuanPriceEqualTo(BigDecimal value) {
            addCriterion("tuan_price =", value, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceNotEqualTo(BigDecimal value) {
            addCriterion("tuan_price <>", value, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceGreaterThan(BigDecimal value) {
            addCriterion("tuan_price >", value, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("tuan_price >=", value, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceLessThan(BigDecimal value) {
            addCriterion("tuan_price <", value, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("tuan_price <=", value, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceIn(List<BigDecimal> values) {
            addCriterion("tuan_price in", values, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceNotIn(List<BigDecimal> values) {
            addCriterion("tuan_price not in", values, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tuan_price between", value1, value2, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tuan_price not between", value1, value2, "tuanPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceIsNull() {
            addCriterion("tuan_original_price is null");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceIsNotNull() {
            addCriterion("tuan_original_price is not null");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceEqualTo(BigDecimal value) {
            addCriterion("tuan_original_price =", value, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceNotEqualTo(BigDecimal value) {
            addCriterion("tuan_original_price <>", value, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceGreaterThan(BigDecimal value) {
            addCriterion("tuan_original_price >", value, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("tuan_original_price >=", value, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceLessThan(BigDecimal value) {
            addCriterion("tuan_original_price <", value, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("tuan_original_price <=", value, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceIn(List<BigDecimal> values) {
            addCriterion("tuan_original_price in", values, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceNotIn(List<BigDecimal> values) {
            addCriterion("tuan_original_price not in", values, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tuan_original_price between", value1, value2, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanOriginalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tuan_original_price not between", value1, value2, "tuanOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathIsNull() {
            addCriterion("tuan_image_path is null");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathIsNotNull() {
            addCriterion("tuan_image_path is not null");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathEqualTo(String value) {
            addCriterion("tuan_image_path =", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathNotEqualTo(String value) {
            addCriterion("tuan_image_path <>", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathGreaterThan(String value) {
            addCriterion("tuan_image_path >", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathGreaterThanOrEqualTo(String value) {
            addCriterion("tuan_image_path >=", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathLessThan(String value) {
            addCriterion("tuan_image_path <", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathLessThanOrEqualTo(String value) {
            addCriterion("tuan_image_path <=", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathLike(String value) {
            addCriterion("tuan_image_path like", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathNotLike(String value) {
            addCriterion("tuan_image_path not like", value, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathIn(List<String> values) {
            addCriterion("tuan_image_path in", values, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathNotIn(List<String> values) {
            addCriterion("tuan_image_path not in", values, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathBetween(String value1, String value2) {
            addCriterion("tuan_image_path between", value1, value2, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanImagePathNotBetween(String value1, String value2) {
            addCriterion("tuan_image_path not between", value1, value2, "tuanImagePath");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlIsNull() {
            addCriterion("tuan_link_url is null");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlIsNotNull() {
            addCriterion("tuan_link_url is not null");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlEqualTo(String value) {
            addCriterion("tuan_link_url =", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlNotEqualTo(String value) {
            addCriterion("tuan_link_url <>", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlGreaterThan(String value) {
            addCriterion("tuan_link_url >", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlGreaterThanOrEqualTo(String value) {
            addCriterion("tuan_link_url >=", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlLessThan(String value) {
            addCriterion("tuan_link_url <", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlLessThanOrEqualTo(String value) {
            addCriterion("tuan_link_url <=", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlLike(String value) {
            addCriterion("tuan_link_url like", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlNotLike(String value) {
            addCriterion("tuan_link_url not like", value, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlIn(List<String> values) {
            addCriterion("tuan_link_url in", values, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlNotIn(List<String> values) {
            addCriterion("tuan_link_url not in", values, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlBetween(String value1, String value2) {
            addCriterion("tuan_link_url between", value1, value2, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andTuanLinkUrlNotBetween(String value1, String value2) {
            addCriterion("tuan_link_url not between", value1, value2, "tuanLinkUrl");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("create_by like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("create_by not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(String value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(String value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(String value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(String value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLike(String value) {
            addCriterion("update_by like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotLike(String value) {
            addCriterion("update_by not like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<String> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<String> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(String value1, String value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andAttributeIsNull() {
            addCriterion("attribute is null");
            return (Criteria) this;
        }

        public Criteria andAttributeIsNotNull() {
            addCriterion("attribute is not null");
            return (Criteria) this;
        }

        public Criteria andAttributeEqualTo(String value) {
            addCriterion("attribute =", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeNotEqualTo(String value) {
            addCriterion("attribute <>", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeGreaterThan(String value) {
            addCriterion("attribute >", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeGreaterThanOrEqualTo(String value) {
            addCriterion("attribute >=", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeLessThan(String value) {
            addCriterion("attribute <", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeLessThanOrEqualTo(String value) {
            addCriterion("attribute <=", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeLike(String value) {
            addCriterion("attribute like", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeNotLike(String value) {
            addCriterion("attribute not like", value, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeIn(List<String> values) {
            addCriterion("attribute in", values, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeNotIn(List<String> values) {
            addCriterion("attribute not in", values, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeBetween(String value1, String value2) {
            addCriterion("attribute between", value1, value2, "attribute");
            return (Criteria) this;
        }

        public Criteria andAttributeNotBetween(String value1, String value2) {
            addCriterion("attribute not between", value1, value2, "attribute");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}